<div class="layui-container" style="width: 100%;padding-top: 20px">
    <table border="2" style="width: 100%;height: 320px;font-size: 5px;font-weight: bold;">
        <#if (maxFloor?? && maxFloor > 0)>
            <#list maxFloor..minFloor as floor>
                <tr>
                    <td style="color: white;width: 30px;height: 55px;text-align: center">
                    <span style="padding-left: 1px;text-align: center;font-size: 20px">
                        <#if (floor > 9)>
                            ${floor}层
                        <#else>
                            &nbsp;&nbsp;${floor}层
                        </#if>
                    </span>
                    </td>

                    <#if (floorHouseMap[floor?string]??)>
                    <#assign houseList=floorHouseMap[floor?string]/>
                    <td style="width: 50px;height:55px;border-right: hidden;padding-left: 3px">
                        <#list houseList as house>
                            <#assign houseHold=house.houseHold/>
                            <#assign houseStatus=house.houseStatus/>
                            <#if (houseStatus != 1)>
                                <#assign houseStyle='2'/>
                            <#else>
                                <#assign houseStyle='1'/>
                            </#if>
                            <#if (floor > 9)>
                                <#assign num=house.houseNum?substring(3)/>
                            <#else>
                                <#assign num=house.houseNum?substring(2)/>
                            </#if>
                            <#if num=="1">
                                <span class="layui-badge"
                                      style="font-size: 20px;margin-top: 2px;line-height: 15px;padding-top: 1px;text-align: center;width: 59px;height:50px;background-color: ${colorMap[houseStyle?string]};font-weight: bold;">
                                    <span style="font-size: 10px">${houseHoldMap[(house.houseHold)]}</span>
                                    <br/><span style="color:#fffb61"> ${(house.houseNum)!}</span>
                                    <br/><span style="font-size: 10px;"> ${(house.buildArea)!}
                                    </span></span>
                            </#if>
                        </#list>
                    </td>
                    <td style="width: 50px;border-right: hidden">
                        <#list houseList as house>
                            <#assign houseHold=house.houseHold/>
                            <#assign houseStatus=house.houseStatus/>
                            <#if (houseStatus != 1)>
                                <#assign houseStyle='2'/>
                            <#else>
                                <#assign houseStyle='1'/>
                            </#if>
                            <#if (floor > 9)>
                                <#assign num=house.houseNum?substring(3)/>
                            <#else>
                                <#assign num=house.houseNum?substring(2)/>
                            </#if>
                            <#if num=="2">
                                <span class="layui-badge"
                                      style="font-size: 20px;margin-top: 2px;line-height: 15px;padding-top: 1px;text-align: center;width: 59px;height:50px;background-color: ${colorMap[houseStyle?string]};font-weight: bold;">
                                    <span style="font-size: 10px">${houseHoldMap[(house.houseHold)]}</span>
                                    <br/><span style="color:#fffb61"> ${(house.houseNum)!}</span>
                                    <br/><span style="font-size: 10px;"> ${(house.buildArea)!}
                                    </span></span>
                            </#if>
                        </#list>
                    </td>
                    <td style="width: 50px;border-right: hidden">
                        <#list houseList as house>
                            <#assign houseHold=house.houseHold/>
                            <#assign houseStatus=house.houseStatus/>
                            <#if (houseStatus != 1)>
                                <#assign houseStyle='2'/>
                            <#else>
                                <#assign houseStyle='1'/>
                            </#if>
                            <#if (floor > 9)>
                                <#assign num=house.houseNum?substring(3)/>
                            <#else>
                                <#assign num=house.houseNum?substring(2)/>
                            </#if>
                            <#if num=="3">
                                <span class="layui-badge"
                                      style="font-size: 20px;margin-top: 2px;line-height: 15px;padding-top: 1px;text-align: center;width: 59px;height:50px;background-color: ${colorMap[houseStyle?string]};font-weight: bold;">
                                    <span style="font-size: 10px">${houseHoldMap[(house.houseHold)]}</span>
                                    <br/><span style="color:#fffb61"> ${(house.houseNum)!}</span>
                                    <br/><span style="font-size: 10px;"> ${(house.buildArea)!}
                                    </span></span>
                            </#if>
                        </#list>
                    </td>

                    <td style="width: 50px;">
                        <#list houseList as house>
                            <#assign houseHold=house.houseHold/>
                            <#assign houseStatus=house.houseStatus/>
                            <#if (houseStatus != 1)>
                                <#assign houseStyle='2'/>
                            <#else>
                                <#assign houseStyle='1'/>
                            </#if>
                            <#if (floor > 9)>
                                <#assign num=house.houseNum?substring(3)/>
                            <#else>
                                <#assign num=house.houseNum?substring(2)/>
                            </#if>
                            <#if num=="5">
                                <span class="layui-badge"
                                      style="font-size: 20px;margin-top: 2px;line-height: 15px;padding-top: 1px;text-align: center;width: 59px;height:50px;background-color: ${colorMap[houseStyle?string]};font-weight: bold;">
                                    <span style="font-size: 10px">${houseHoldMap[(house.houseHold)]}</span>
                                    <br/><span style="color:#fffb61"> ${(house.houseNum)!}</span>
                                    <br/><span style="font-size: 10px;"> ${(house.buildArea)!}
                                    </span></span>
                            </#if>
                        </#list>
                    </td>
                    <#else >
                    <td style="width: 50px;height: 55px;border-right: hidden;padding-left: 1px">
                    <td style="width: 50px;border-right: hidden">
                    <td style="width: 50px;border-right: hidden">
                    <td style="width: 50px;padding-right: 1px">
                        </#if>
                </tr>
            </#list>
        </#if>
    </table>
</div>